package com.lmb.service;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.toolkit.IdWorker;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.lmb.bean.*;
import com.lmb.dao.AddressBookDao;
import com.lmb.dao.OrderDetailDao;
import com.lmb.dao.ShoppingCartDao;
import com.lmb.dao.UserDao;
import com.lmb.dto.OrdersDto;
import com.lmb.exception.CustomException;
import com.sun.prism.impl.BaseContext;
import org.springframework.beans.BeanUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.transaction.annotation.Transactional;

import javax.servlet.http.HttpSession;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.List;
import java.util.UUID;
import java.util.concurrent.atomic.AtomicInteger;

public interface OrdersService extends IService<Orders> {

    void submit(Orders orders, HttpSession session);

    @Transactional
    Page<OrdersDto> userPage(Integer page, Integer pageSize, HttpSession session);
}